package com.example.finalsystem.Dao;

import com.example.finalsystem.Entity.ListGoods;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface ListGoodsMapper {
    @Select("select * from uml_listgoods where FK_dealid = #{dealId}")
    List<ListGoods> getAllByFK_dealId(String dealId);

    @Delete("delete from uml_listgoods where FK_dealid = #{dealId}")
    void deleteAllByFK_dealId(String dealId);


    int deleteByPrimaryKey(Long listgoodsid);

    int insert(ListGoods record);

    int insertSelective(ListGoods record);

    ListGoods selectByPrimaryKey(Long listgoodsid);

    int updateByPrimaryKeySelective(ListGoods record);

    int updateByPrimaryKey(ListGoods record);
}